﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewHocVien.aspx.cs" Inherits="STT.Report.ViewHocVien" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form2" runat="server">
    <div>
          <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
        <asp:LinkButton ID="lbIn" runat="server" CssClass="btn" 
                        OnClick="lbIn_Click">Tạo bản in</asp:LinkButton>
    <div class="btn-group">
                    <asp:RadioButton ID="rbtLop" runat="server" Text="Lớp " OnCheckedChanged="rbtLop_CheckedChanged" AutoPostBack="True" />
                          </div>
                          <div class="btn-group">
                       <asp:RadioButton ID="rbtPhong" runat="server" Text="Phòng Ban" OnCheckedChanged="rbtPhong_CheckedChanged" AutoPostBack="True" />
                              </div>
                    <div class="btn-group">
                        <asp:DropDownList ID="ddlop" runat="server" class="span20"
                            ViewStateMode="Enabled" DataSourceID="SqlDataSource6" DataTextField="TenLop"
                            DataValueField="MaLop" Visible="False" >
                        </asp:DropDownList>
                        <asp:SqlDataSource runat="server" ID="SqlDataSource6" ConnectionString='<%$ ConnectionStrings:DTNHConnectionString %>'
                            SelectCommand="SELECT [MaLop], [TenLop] FROM [TbLop]"></asp:SqlDataSource>
                    </div>
                     <div class="btn-group">
                        <asp:DropDownList ID="ddlPhongBan" runat="server" class="span20"
                            ViewStateMode="Enabled" DataSourceID="SqlDataSource1" DataTextField="TenPB" DataValueField="MaPB" Visible="False" >
                        </asp:DropDownList>
                       
                         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DTNHConnectionString %>" SelectCommand="SELECT [MaPB], [TenPB] FROM [TbPhongBan]"></asp:SqlDataSource>
                       
                    </div>
     </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    </div>

 
    <div>
    
        <rsweb:ReportViewer ID="rpvHocVien" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="686px" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="890px" style="margin-top: 0px" Visible="False">
            <LocalReport ReportPath="RDLC\HocVien.rdlc">
              
            </LocalReport>
        </rsweb:ReportViewer>
       
    
    </div>
      </form>
</body>
</html>
